//
//  Product.h
//  iShop
//
//  Created by svp on 1/6/12.
//  Copyright 2012 __MyCompanyName__. All rights reserved.
//

#import <CoreData/CoreData.h>

@class BaseProduct;
@class Promotion;
@class Shop;
@class SubProduct;

@interface Product :  NSManagedObject  
{
}

@property (nonatomic, retain) NSNumber * Amount;
@property (nonatomic, retain) NSNumber * ProductPromoPrice;
@property (nonatomic, retain) NSString * ProductRefCode;
@property (nonatomic, retain) NSString * ProductID;
@property (nonatomic, retain) NSNumber * ProductUnitPrice;
@property (nonatomic, retain) Promotion * Promotion;
@property (nonatomic, retain) BaseProduct * BaseProduct;
@property (nonatomic, retain) Shop * Shop;
@property (nonatomic, retain) NSSet* SubProducts;

-(NSNumber*) getPriceUnit;

@end


@interface Product (CoreDataGeneratedAccessors)
- (void)addSubProductsObject:(SubProduct *)value;
- (void)removeSubProductsObject:(SubProduct *)value;
- (void)addSubProducts:(NSSet *)value;
- (void)removeSubProducts:(NSSet *)value;

@end

